package com.fadadianqi.logistics.admin.staff.dao.ibatis;

import com.fadadianqi.logistics.admin.staff.dao.ActionDAO;
import com.fadadianqi.logistics.admin.staff.model.Action;
import com.fadadianqi.commons.GenericDAOSuport;
import org.springframework.stereotype.Component;

import java.util.List;


@Component
public class ActionDAOImpl extends GenericDAOSuport<String, Action>
        implements ActionDAO {

    @Override
    public List<Action> findAll() {
        return super.findAll(null);
    }

    @Override
    protected Class<?> getObjectClass() {
        return Action.class;
    }

    @Override
    protected String getTableName() {
        return "staff_action";
    }

}
